package com.ts.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author koshi
 * @since 2024-04-07
 */
@TableName("video")
public class Video implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 视频的id
     */
    @TableId(value = "video_id", type = IdType.ID_WORKER)
    private Long videoId;

    /**
     * 是否可见1：不可见
     */
    private Integer flag;

    /**
     * 是否删除：1：删除
     */
    private Integer isDelete;

    /**
     * 视频大小
     */
    private String size;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 分片上传的upload
     */
    private String uploadId;

    /**
     * 文件唯一标识（md5）
     */
    private String fileIdentifier;

    /**
     * 文件的key
     */
    private String objectKey;

    /**
     * 每一个分片的大小
     */
    private Double chunkSize;

    /**
     * 分片数量
     */
    private Integer chunkNum;

    public Long getVideoId() {
        return videoId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }
    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getUploadId() {
        return uploadId;
    }

    public void setUploadId(String uploadId) {
        this.uploadId = uploadId;
    }
    public String getFileIdentifier() {
        return fileIdentifier;
    }

    public void setFileIdentifier(String fileIdentifier) {
        this.fileIdentifier = fileIdentifier;
    }
    public String getObjectKey() {
        return objectKey;
    }

    public void setObjectKey(String objectKey) {
        this.objectKey = objectKey;
    }
    public Double getChunkSize() {
        return chunkSize;
    }

    public void setChunkSize(Double chunkSize) {
        this.chunkSize = chunkSize;
    }
    public Integer getChunkNum() {
        return chunkNum;
    }

    public void setChunkNum(Integer chunkNum) {
        this.chunkNum = chunkNum;
    }

    @Override
    public String toString() {
        return "Video{" +
            "videoId=" + videoId +
            ", flag=" + flag +
            ", isDelete=" + isDelete +
            ", size=" + size +
            ", userId=" + userId +
            ", createTime=" + createTime +
            ", uploadId=" + uploadId +
            ", fileIdentifier=" + fileIdentifier +
            ", objectKey=" + objectKey +
            ", chunkSize=" + chunkSize +
            ", chunkNum=" + chunkNum +
        "}";
    }
}
